package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.Personalmessage;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface PersonalmessageMapper {
    void insertPersonalMessage(Integer userId, Integer companyId, @Param("postId") Integer postId, Integer resumeId);

    Personalmessage selectStatus(Integer userId, Integer postId, Integer companyId);

    List<Personalmessage> selectByUserId(Integer userId);

    void removeCollectJob(Integer userId, @Param("myFavorId") Integer jobId, Integer companyId);

    void removePostJob(Integer userId, @Param("postId") Integer jobId, Integer companyId);

    void removeRecruitJob(Integer userId, @Param("getpostId") Integer jobId, Integer companyId);

    void updateInterview(Integer postId, Integer companyId, Integer resumeId, Integer approve);

    Personalmessage selectByUserIdAndJobIdAndCompanyId(Integer userId, Integer postId, Integer companyId, Integer resumeId);

    void insertPersonalFavorMessage(Integer userId, Integer companyId, Integer myFavorId, Integer resumeId);

    void updatePersonalFavorMessage(Integer userId, Integer companyId, Integer postId, Integer resumeId);

    void updateFavorNullMessage(Integer userId, Integer companyId, Integer postId, Integer resumeId);

    void updatePostIdMessage(Integer userId, Integer companyId, Integer postId, Integer resumeId);

    void insertPersonalApproveMessage(Integer userId, Integer companyId, Integer jobId, Integer resumeId);
}
